<template>
  <div id="recommend">
      <div class="recommend_item" v-for="(item,index) in recommends" :key="index">
          <a :href="item.link">
              <img :src="item.image" alt="">
          </a>
          <div>{{item.title}}</div>
      </div>
  </div>
</template>

<script>
export default {
    name:"RecommendView",
    props:{
        recommends:{
            type:Array,
            default(){
                return [];
            }
        }
    }
}
</script>

<style>
#recommend{
    display: flex;
    width: 100%;
    font-size: 12px;
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 8px solid #eee;
}
.recommend_item{
    flex: 1;
}
.recommend_item img{
    width: 70%;
    margin-bottom: 5px;
   

}
</style>